﻿using System;
using System.IO;

namespace _05_构造函数
{
    class Program
    {
        static void Main(string[] args)
        {
            Rectangle r1;
            r1.Width = 10;

            Rectangle r2 = new Rectangle();
            r2.Width = 6;
            r2.Height = 25;

            Rectangle r3 = new Rectangle(45, 185);
        }
        struct Rectangle
        {
            public int Width;
            public int Height;

            public Rectangle(int w, int h)
            {
                Width = w;
                Height = h;
            }
        }
    }
}
